package com.lwc.cfdns.service;

import com.lwc.cfdns.pojo.bo.system.DeptBO;
import com.lwc.cfdns.pojo.dto.system.DeptDTO;
import com.lwc.cfdns.pojo.entity.SystemDept;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lwc.cfdns.pojo.vo.system.DeptTreeVO;
import com.lwc.cfdns.pojo.vo.system.DeptVO;

import java.util.List;
import java.util.Map;

/**
 * @author spring
 * @description 针对表【cfdns_system_dept(部门表)】的数据库操作Service
 * @createDate 2023-05-24 17:09:18
 */
public interface SystemDeptService extends IService<SystemDept> {

    /**
     * 创建
     *
     * @param deptDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/24 17:16:28
     */
    Map<String, Object> create(DeptDTO deptDTO);

    /**
     * 详情
     *
     * @param id
     * @return DeptVO
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/24 17:19:38
     */
    DeptVO view(Long id);

    /**
     * 修改
     *
     * @param id
     * @param deptDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/24 17:22:58
     */
    Map<String, Object> update(Long id, DeptDTO deptDTO);

    /**
     * 删除
     *
     * @param id
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/24 17:25:34
     */
    Map<String, Object> delete(Long id);

    /**
     * 列表
     *
     * @param deptBo
     * @return List<DeptVO>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/24 17:45:17
     */
    List<DeptVO> lists(DeptBO deptBo);

    /**
     * 树
     *
     * @param deptBO
     * @return List<DeptTreeVO>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/26 15:00:03
     */
    List<DeptTreeVO> tree(DeptBO deptBO);
}
